<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'idioma.label', default: 'Idioma')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="cabelistlateral"><img src="${resource(dir:'images',file:'seta_cabecalho_20x20.png')}" /> Cadastro de Idiomas</div><br/>
        <inc:include url="/includes/inc_estagiario_menu.gsp" />
        <div class="body">
           <form method="post" action="${createLink(controller:'idioma', action:'save')}">
                <div class="dialog dadospessoais">
                    <g:if test="${flash.message}">
                        <div class="message">${flash.message}</div>
                    </g:if>
                    <g:hasErrors bean="${idiomaInstance}">
                        <div class="errors erro">
                            <g:renderErrors bean="${idiomaInstance}" as="list" />
                        </div>
                    </g:hasErrors>
                    <table>
                        <tbody>
                            <input type="hidden" name="estagiario.id" value="${session.pessoa.id}"/>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nome"><g:message code="idioma.nome.label" default="Idioma" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: idiomaInstance, field: 'nome', 'errors')}">
                                    <g:textField name="nome" maxlength="30" size="50" value="${idiomaInstance?.nome}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="leitura"><g:message code="idioma.leitura.label" default="Leitura" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: idiomaInstance, field: 'leitura', 'errors')}">
                                  <select name="leitura" style="width:150px;">
                                      <option value="">Selecione</option>
                                      <option value="Básico" <%if(idiomaInstance?.leitura=='Básico'){%>selected<%}%>>Básico</option>
                                      <option value="Intermediário" <%if(idiomaInstance?.leitura=='Intermediário'){%>selected<%}%>>Intermediário</option>
                                      <option value="Bom" <%if(idiomaInstance?.leitura=='Bom'){%>selected<%}%>>Bom</option>
                                      <option value="Excelente" <%if(idiomaInstance?.leitura=='Excelente'){%>selected<%}%>>Excelente</option>
                                      <option value="Nada" <%if(idiomaInstance?.leitura=='Nada'){%>selected<%}%>>Nada</option>
                                  </select>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="escrita"><g:message code="idioma.escrita.label" default="Escrita" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: idiomaInstance, field: 'escrita', 'errors')}">
                                    <select name="escrita" style="width:150px;">
                                      <option value="">Selecione</option>
                                      <option value="Básico" <%if(idiomaInstance?.escrita=='Básico'){%>selected<%}%>>Básico</option>
                                      <option value="Intermediário" <%if(idiomaInstance?.escrita=='Intermediário'){%>selected<%}%>>Intermediário</option>
                                      <option value="Bom" <%if(idiomaInstance?.escrita=='Bom'){%>selected<%}%>>Bom</option>
                                      <option value="Excelente" <%if(idiomaInstance?.escrita=='Excelente'){%>selected<%}%>>Excelente</option>
                                      <option value="Nada" <%if(idiomaInstance?.escrita=='Nada'){%>selected<%}%>>Nada</option>
                                    </select>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="fala"><g:message code="idioma.fala.label" default="Fala" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: idiomaInstance, field: 'fala', 'errors')}">
                                    <select name="fala" style="width:150px;">
                                      <option value="">Selecione</option>
                                      <option value="Básico" <%if(idiomaInstance?.fala=='Básico'){%>selected<%}%>>Básico</option>
                                      <option value="Intermediário" <%if(idiomaInstance?.fala=='Intermediário'){%>selected<%}%>>Intermediário</option>
                                      <option value="Bom" <%if(idiomaInstance?.fala=='Bom'){%>selected<%}%>>Bom</option>
                                      <option value="Excelente" <%if(idiomaInstance?.fala=='Excelente'){%>selected<%}%>>Excelente</option>
                                      <option value="Nada" <%if(idiomaInstance?.fala=='Nada'){%>selected<%}%>>Nada</option>
                                    </select>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="compreensao"><g:message code="idioma.compreensao.label" default="Compreensao" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: idiomaInstance, field: 'compreensao', 'errors')}">
                                    <select name="compreensao" style="width:150px;">
                                      <option value="">Selecione</option>
                                      <option value="Básico" <%if(idiomaInstance?.compreensao=='Básico'){%>selected<%}%>>Básico</option>
                                      <option value="Intermediário" <%if(idiomaInstance?.compreensao=='Intermediário'){%>selected<%}%>>Intermediário</option>
                                      <option value="Bom" <%if(idiomaInstance?.compreensao=='Bom'){%>selected<%}%>>Bom</option>
                                      <option value="Excelente" <%if(idiomaInstance?.compreensao=='Excelente'){%>selected<%}%>>Excelente</option>
                                      <option value="Nada" <%if(idiomaInstance?.compreensao=='Nada'){%>selected<%}%>>Nada</option>
                                    </select>
                                </td>
                            </tr>
                        
                            <tr>
                              <td></td>
                              <td class="btsalvarcadastro">
                                  <g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" />
                              </td>
                            </tr>

                            <tr>
                              <td></td>
                              <td>
                                <g:include  view="idioma/inc_texto_explicativo.gsp" />
                              </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>

                <div class="dadoslateral">
                  <g:include  view="idioma/inc_list.gsp" />
                </div>

            </form>
        </div>
    </body>
</html>
